﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Framework.Dynamics;
using Umbraco.Cms.Web;
using Umbraco.Cms.Web.Model;
using Umbraco.Framework.Data;
using Umbraco.Hive;
namespace PBDesk.com.WebSite.Helpers
{
    public class NavHelpers
    {
        public static BendyObject GetHomeNode(BendyObject dynaModel)
        {
            return dynaModel.AsDynamic().AncestorsOrSelf.First("NodeTypeAlias == @0", "HomePage");           
        }

    }
}